<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><?php echo ($system_name); ?>管理中心 - <?php echo ($page_name); ?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="/mall/Public/css/amazeui.min.css"/>
    <link rel="stylesheet" href="/mall/Public/css/admin.css"/>
</head>
<body>
    <div class="admin-content">
        <!--页头-->
        <div class="am-cf am-padding">
            <div class="am-fl am-cf">
                <strong class="am-text-primary am-text-lg">商品管理</strong> / <small><?php echo ($page_name); ?></small>
            </div>
            <div class="am-g">
                <div class="am-u-sm-12 am-u-md-2 am-u-sm-offset-8">
                    <div class="am-btn-toolbar">
                        <div class="am-btn-group am-btn-group-xs">
                            <a href="<?php echo U('goods/goods_category');?>" class="am-btn am-btn-default"><span class="am-icon-list"></span> 商品分类列表</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <hr/>

        <!--表单-->
        <div class="am-g">
            <div class="am-u-sm-12 am-u-md-8">
                <form class="am-form am-form-horizontal">
                    <?php if(is_array($category_info)): $i = 0; $__LIST__ = $category_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i; switch($list["type"]): case "text": ?><div class="am-form-group">
                                    <label for="<?php echo ($list["name"]); ?>" class="am-u-sm-4 am-form-label"><?php echo ($list["title"]); ?>：</label>
                                    <div class="am-u-sm-4 am-u-end">
                                        <input type="<?php echo ($list["type"]); ?>" id="<?php echo ($list["name"]); ?>" name="<?php echo ($list["name"]); ?>">
                                    </div>
                                </div><?php break;?>
                            <?php case "select": ?><div class="am-form-group">
                                    <label for="<?php echo ($list["name"]); ?>" class="am-u-sm-4 am-form-label"><?php echo ($list["title"]); ?>：</label>
                                    <div class="am-u-sm-4 am-u-end">
                                        <select name="<?php echo ($list["name"]); ?>" id="<?php echo ($list["name"]); ?>">
                                            <option value="0">顶级分类</option>
                                        </select>
                                    </div>
                                </div><?php break;?>
                            <?php case "checkbox": ?><div class="am-form-group">
                                    <label class="am-u-sm-4 am-form-label"><?php echo ($list["title"]); ?>：</label>
                                </div><?php break;?>
                            <?php case "textarea": ?><div class="am-form-group">
                                    <label for="<?php echo ($list["name"]); ?>" class="am-u-sm-4 am-form-label"><?php echo ($list["title"]); ?>：</label>
                                    <div class="am-u-sm-8">
                                        <textarea class="" rows="5" id="<?php echo ($list["name"]); ?>"></textarea>
                                </div>
                                </div><?php break; endswitch; endforeach; endif; else: echo "" ;endif; ?>

                    <div class="am-form-group">
                        <div class="am-u-sm-9 am-u-sm-push-4">
                            <button type="button" class="am-btn am-btn-primary">确定</button>
                            <button type="button" class="am-btn am-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>

    </div>
</body>
</html>